package com.telnikoff.gf;

import javax.swing.Action;

public class DefaultGfMenuLeaf implements GfMenuLeaf
{
	private final Action a;
	
	protected DefaultGfMenuLeaf(Action a)
	{
		this.a = a;
	}

	@Override
	public String getName() 
	{
		Object o = a.getValue(Action.NAME);
		return null == o ? "null" : o.toString();
	}

	@Override
	public Action getAction() { return a; }

}
